package com.xiangyueEducation.uploaderCloud.websocket;

import com.xiangyueEducation.uploaderCloud.mapper.UserMapper;
import com.xiangyueEducation.uploaderCloud.mapper.mapperUtil.UserMapperUtil;
import com.xiangyueEducation.uploaderCloud.pojo.entity.User;
import com.xiangyueEducation.uploaderCloud.utils.Result;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.socket.WebSocketSession;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

@Component
public class WebSocketUtil {

    Map<Long, WebSocketSession> map=U2UChat.sessionMap;

    @Autowired
    UserMapperUtil userMapperUtil;
    @Resource
    UserMapper userMapper;

//    public Result<?> getCurrentUser(){
//        List<User> users = userMapper.selectBatchIds(new ArrayList<>(map.keySet()));
//
//    }



}
